﻿using System;
using System.Collections.Generic;

namespace NetCoreCMS.Models
{
    /// <summary>
    /// 文章主实体类
    /// </summary>
    public partial class Article:BaseModel
    {
        /// <summary>
        /// 频道ID 1新闻，2商品
        /// </summary>
        public int channel_id { get; set; } = 0;
        /// <summary>
        /// 类别ID
        /// </summary>
        public int category_id { get; set; } = 0;
        /// <summary>
        /// 供货ID
        /// </summary>
        public int shop_id { get; set; } = 0;
        /// <summary>
        /// 调用别名
        /// </summary>
        public string call_index { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 外部链接
        /// </summary>
        public string link_url { get; set; }
        /// <summary>
        /// 图片地址
        /// </summary>
        public string img_url { get; set; }
        /// <summary>
        /// SEO标题
        /// </summary>
        public string seo_title { get; set; }
        /// <summary>
        /// SEO关健字
        /// </summary>
        public string seo_keywords { get; set; }
        /// <summary>
        /// SEO描述
        /// </summary>
        public string seo_description { get; set; }
        /// <summary>
        /// 内容摘要
        /// </summary>
        public string zhaiyao { get; set; }
        /// <summary>
        /// 详细内容
        /// </summary>
        public string content { get; set; }
        /// <summary>
        /// 排序
        /// </summary>
        public int sort_id { get; set; } = 99;
        /// <summary>
        /// 浏览次数
        /// </summary>
        public int click { get; set; } = 0;
        /// <summary>
        /// 状态0正常1未审核2锁定
        /// </summary>
        public int status { get; set; } = 0;
        /// <summary>
        /// 是否允许评论
        /// </summary>
        public int is_msg { get; set; } = 0;
        /// <summary>
        /// 是否置顶
        /// </summary>
        public int is_top { get; set; } = 0;
        /// <summary>
        /// 是否推荐
        /// </summary>
        public int is_red { get; set; } = 0;
        /// <summary>
        /// 是否热门
        /// </summary>
        public int is_hot { get; set; } = 0;
        /// <summary>
        /// 是否幻灯片
        /// </summary>
        public int is_slide { get; set; } = 0;
        /// <summary>
        /// 是否管理员发布0不是1是
        /// </summary>
        public int is_sys { get; set; } = 0;
        /// <summary>
        /// 喜欢数量
        /// </summary>
        public int like_count { get; set; } = 0;
        /// <summary>
        /// 用户名
        /// </summary>
        public string user_name { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? update_time { get; set; }
        /// <summary>
        /// 图片相册
        /// </summary>
        public List<Article_albums> albums { get; set; }
        /// <summary>
        /// 商品价格
        /// </summary>
        public List<Article_goods> goods { get; set; }

        /// <summary>
        /// 商品规格
        /// </summary>
        public List<Article_goods_spec> specs { get; set; }
        public string source { get; set; }
        public string author { get; set; }
        public string goods_no { get; set; }
        public int stock_quantity { get; set; } = 0;
        public decimal market_price { get; set; } = 0;
        public decimal sell_price { get; set; } = 0;
        public decimal pv_price { get; set; } = 0;
        public int point { get; set; } = 0;
    }
}